package com.example.demon.service;

import com.example.demon.dao.AdminDao;
import com.example.demon.entity.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {

    @Autowired
    AdminDao adminDao;


    public int saveAdmin(Admin admin) {
        int insert = adminDao.insert(admin);
        return insert;
    }
}
